package com.lukk.controller;

import java.util.Map;

import javax.annotation.Resource;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.lukk.service.IIndentService;

/**
 * 
 * IndentController 下午5:19:29
 * 
 * Copyright zhaocj Inc. All rights reserved. Love ME Like Justin Bieber.
 */
@Controller
@RequestMapping("/indent")
public class IndentController {
	private static Logger logger = LogManager.getLogger(IndentController.class.getName());
	@Resource
	private IIndentService indentService;

	// 解析视图
	@RequestMapping("/queryByIWorker")
	public @ResponseBody Map<String, Object> queryByIWorker(Integer offset, Integer limit, String sort, String order,
			String beginTime, String endTime, Integer type, String areaCode, Integer iWorkerID) {
		return indentService.selectByIWorker(offset, limit, sort, order, beginTime, endTime, type, areaCode, iWorkerID);
	}
}
